#!/usr/bin/env bash
export JAVA_HOME=/usr/local/java
export BOOK_HOME=/home/mp/data-algoritms_book
export APP_JAR=${BOOK_HOME}/dist/data_algoritms_book.jar
export HADOOP_HOME=/usr/local/hadoop
INPUT=/secondary_sort/input
OUTPUT=/secondary_sort/output
${HADOOP_HOME}/bin/hdfs dfs -rm -r ${OUTPUT}
PROG=org.wj.temperature.SecondarySortDriver
${HADOOP_HOME}/bin/hadoop jar ${APP_JAR} ${PROG} ${INPUT} ${OUTPUT}